// 基于template/src/views/{{appModules}}/{{pages@DEEDITVIEW}}/{{spinalCase page.codeName}}-model.ts.hbs生成
import { IEditViewModel } from '@/core/interface/view/model';
function getModel(): IEditViewModel {
	return {
		caption: '部门',
		title: '组织部门详情',
		capPSLanguageRes: 'DE.LNAME.SYS_DEPARTMENT',
		titlePSLanguageRes: '',
		showDataInfoBar: true,
		codeName: 'sys_departmentDeptDetailsView',
		uiEngineModel: [
			{
				name: 'toolbar_deuiaction1_click',
				triggerType: 'CTRLEVENT',
				logicType: 'APPVIEWUIACTION',
				eventNames: 'CLICK',
				scriptCode: ``,
				logicName: ``,
				logicTag: '',
				eventArg: 'deuiaction1',
				eventArg2: '',
				timer: 0,
				psViewCtrlName: 'toolbar',
				uIActionTag: 'NewSubDept',
				entityCodeName: 'Sys_department',
			},
			{
				name: 'toolbar_deuiaction2_click',
				triggerType: 'CTRLEVENT',
				logicType: 'APPVIEWUIACTION',
				eventNames: 'CLICK',
				scriptCode: ``,
				logicName: ``,
				logicTag: '',
				eventArg: 'deuiaction2',
				eventArg2: '',
				timer: 0,
				psViewCtrlName: 'toolbar',
				uIActionTag: 'UpdateDept',
				entityCodeName: 'Sys_department',
			},
		],
		ctrls: [
			{
				name: 'toolbar',
				codeName: 'DeptDetailsViewtoolbar',
				controlType: 'TOOLBAR',
			},
			{
				name: 'form',
				codeName: 'Usr0301842048',
				controlType: 'FORM',
			},
		],
		ctrlParams: {
			Sys_departmenttoolbar: {},
			Sys_departmentform: {},
		},
		cssName: '',
		name: 'sys_departmentDeptDetailsView',
		viewType: 'DEEDITVIEW',
		viewStyle: 'DEFAULT',
		showCaption: true,
		isLoadDefault: true,
		entityCodeName: 'Sys_department',
		keyPSAppDEField: 'Id',
		majorPSAppDEField: 'Department_name',
		expandSearchForm: false,
		toolbarItems: [
			{
				actionLevel: '100',
				caption: '添加子部门',
				captionLanResTag: '',
				name: 'deuiaction1',
				showCaption: true,
				tooltip: '添加子部门',
				tooltipLanResTag: '',
				itemType: 'DEUIACTION',
				showIcon: true,
				disabled: false,
				cssName: '',
				imagePath: '',
				iconCls: 'fa fa-plus',
				imagePathX: '',
				dataAccessAction: '',
				noPrivDisplayMode: 2,
				uiAction: {
					codeName: 'NewSubDept',
					uIActionMode: 'FRONT',
					actionTarget: 'NONE',
					uIActionTag: 'NewSubDept',
					uIActionType: 'DEUIACTION',
				},
				logic: {
					name: 'toolbar_deuiaction1_click',
					actionTag: 'NewSubDept',
					xDataCtrlName: 'form',
					actionDECodeName: 'Sys_department',
					predefinedType: '',
				},
			},
			{
				actionLevel: '100',
				caption: '修改信息',
				captionLanResTag: '',
				name: 'deuiaction2',
				showCaption: true,
				tooltip: '修改信息',
				tooltipLanResTag: '',
				itemType: 'DEUIACTION',
				showIcon: true,
				disabled: false,
				cssName: '',
				imagePath: '',
				iconCls: 'fa fa-edit',
				imagePathX: '',
				dataAccessAction: '',
				noPrivDisplayMode: 2,
				uiAction: {
					codeName: 'UpdateDept',
					uIActionMode: 'FRONT',
					actionTarget: 'SINGLEKEY',
					uIActionTag: 'UpdateDept',
					uIActionType: 'DEUIACTION',
				},
				logic: {
					name: 'toolbar_deuiaction2_click',
					actionTag: 'UpdateDept',
					xDataCtrlName: 'form',
					actionDECodeName: 'Sys_department',
					predefinedType: '',
				},
			},
		],
		xDataCtrlName: 'form',
		quickSearchPlaceholder: ['部门名称'].join(','),
		useDefaultLayout: true,
	};
}
export const model = getModel();
